﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.SharePoint.Administration;

namespace Mystery.SharePoint
{
    public static class SiteProvisioningExtensions
    {
        /// <summary>
        /// Gets the site provisioning settings for the application
        /// </summary>
        /// <param name="application"></param>
        /// <returns></returns>
        public static SiteProvisioningSettings GetSiteProvisioningSettings(this SPWebApplication application)
        {
            if (application == null) throw new ArgumentNullException("application");

            return SiteProvisioningSettings.Create(application);
        }
    }
}
